﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TomNet.Data
{
    public interface IOpResult
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        bool Success { get; }

        /// <summary>
        /// 状态码
        /// </summary>
        int StatusCode { get; }

        /// <summary>
        /// 消息
        /// </summary>
        public string Msg { get; }
    }

    /// <summary>
    /// 响应数据输出泛型接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IOpResult<T> : IOpResult
    {
        /// <summary>
        /// 返回数据
        /// </summary>
        T Data { get; }
    }
}
